// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SALES_SO
// * CreateDate    : 2014-06-05 18:30:39
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:39
// * LastChanger   : 2014-06-05 18:30:39
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SalesSoTable : TableInfo
    {
		public const string C_TableName = "SALES_SO";
		
		public const string C_ID = "ID";
		public const string C_CREATED_DATE = "CREATED_DATE";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_UPDATED_DATE = "UPDATED_DATE";
		public const string C_UPDATED_BY = "UPDATED_BY";
		public const string C_IS_ACTIVE = "IS_ACTIVE";
		public const string C_COMPANY_ID = "COMPANY_ID";
		public const string C_SOB_ID = "SOB_ID";
		public const string C_SO_NO = "SO_NO";
		public const string C_QU_NO = "QU_NO";
		public const string C_CONTACT_ID = "CONTACT_ID";
		public const string C_CONTACT_USER = "CONTACT_USER";
		public const string C_TEL = "TEL";
		public const string C_CUSTOMER_ID = "CUSTOMER_ID";
		public const string C_CUSTOMER_NAME = "CUSTOMER_NAME";
		public const string C_CUSTOMER_CODE = "CUSTOMER_CODE";
		public const string C_ORDER_PERSON = "ORDER_PERSON";
		public const string C_ORDER_DATE = "ORDER_DATE";
		public const string C_TOTAL_AMOUNT = "TOTAL_AMOUNT";
		public const string C_CURRENCY = "CURRENCY";
		public const string C_DELIVERY_ADD = "DELIVERY_ADD";
		public const string C_TRANSPORT_TYPE = "TRANSPORT_TYPE";
		public const string C_PACKAGE_TYPE = "PACKAGE_TYPE";
		public const string C_PAYMENT_TYPE = "PAYMENT_TYPE";
		public const string C_REMARK = "REMARK";
		public const string C_IS_CONFIRM = "IS_CONFIRM";
		public const string C_STATUS = "STATUS";
		
		public SalesSoTable()
        {
            _tableName = "SALES_SO";
        }
		
		protected static SalesSoTable _current;
        public static SalesSoTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SalesSoTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_UPDATED_DATE, new ColumnInfo(C_UPDATED_DATE,"UpdatedDate", false, typeof(DateTime)));
            _current.Add(C_UPDATED_BY, new ColumnInfo(C_UPDATED_BY,"UpdatedBy", false, typeof(string)));
            _current.Add(C_IS_ACTIVE, new ColumnInfo(C_IS_ACTIVE,"IsActive", false, typeof(int)));
            _current.Add(C_COMPANY_ID, new ColumnInfo(C_COMPANY_ID,"CompanyId", false, typeof(string)));
            _current.Add(C_SOB_ID, new ColumnInfo(C_SOB_ID,"SobId", false, typeof(string)));
            _current.Add(C_SO_NO, new ColumnInfo(C_SO_NO,"SoNo", false, typeof(string)));
            _current.Add(C_QU_NO, new ColumnInfo(C_QU_NO,"QuNo", false, typeof(string)));
            _current.Add(C_CONTACT_ID, new ColumnInfo(C_CONTACT_ID,"ContactId", false, typeof(string)));
            _current.Add(C_CONTACT_USER, new ColumnInfo(C_CONTACT_USER,"ContactUser", false, typeof(string)));
            _current.Add(C_TEL, new ColumnInfo(C_TEL,"Tel", false, typeof(string)));
            _current.Add(C_CUSTOMER_ID, new ColumnInfo(C_CUSTOMER_ID,"CustomerId", false, typeof(string)));
            _current.Add(C_CUSTOMER_NAME, new ColumnInfo(C_CUSTOMER_NAME,"CustomerName", false, typeof(string)));
            _current.Add(C_CUSTOMER_CODE, new ColumnInfo(C_CUSTOMER_CODE,"CustomerCode", false, typeof(string)));
            _current.Add(C_ORDER_PERSON, new ColumnInfo(C_ORDER_PERSON,"OrderPerson", false, typeof(string)));
            _current.Add(C_ORDER_DATE, new ColumnInfo(C_ORDER_DATE,"OrderDate", false, typeof(DateTime)));
            _current.Add(C_TOTAL_AMOUNT, new ColumnInfo(C_TOTAL_AMOUNT,"TotalAmount", false, typeof(decimal)));
            _current.Add(C_CURRENCY, new ColumnInfo(C_CURRENCY,"Currency", false, typeof(string)));
            _current.Add(C_DELIVERY_ADD, new ColumnInfo(C_DELIVERY_ADD,"DeliveryAdd", false, typeof(string)));
            _current.Add(C_TRANSPORT_TYPE, new ColumnInfo(C_TRANSPORT_TYPE,"TransportType", false, typeof(string)));
            _current.Add(C_PACKAGE_TYPE, new ColumnInfo(C_PACKAGE_TYPE,"PackageType", false, typeof(string)));
            _current.Add(C_PAYMENT_TYPE, new ColumnInfo(C_PAYMENT_TYPE,"PaymentType", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_IS_CONFIRM, new ColumnInfo(C_IS_CONFIRM,"IsConfirm", false, typeof(int)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(string)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo UPDATED_DATE
        {
            get { return this[C_UPDATED_DATE]; }
        }
		
		public ColumnInfo UPDATED_BY
        {
            get { return this[C_UPDATED_BY]; }
        }
		
		public ColumnInfo IS_ACTIVE
        {
            get { return this[C_IS_ACTIVE]; }
        }
		
		public ColumnInfo COMPANY_ID
        {
            get { return this[C_COMPANY_ID]; }
        }
		
		public ColumnInfo SOB_ID
        {
            get { return this[C_SOB_ID]; }
        }
		
		public ColumnInfo SO_NO
        {
            get { return this[C_SO_NO]; }
        }
		
		public ColumnInfo QU_NO
        {
            get { return this[C_QU_NO]; }
        }
		
		public ColumnInfo CONTACT_ID
        {
            get { return this[C_CONTACT_ID]; }
        }
		
		public ColumnInfo CONTACT_USER
        {
            get { return this[C_CONTACT_USER]; }
        }
		
		public ColumnInfo TEL
        {
            get { return this[C_TEL]; }
        }
		
		public ColumnInfo CUSTOMER_ID
        {
            get { return this[C_CUSTOMER_ID]; }
        }
		
		public ColumnInfo CUSTOMER_NAME
        {
            get { return this[C_CUSTOMER_NAME]; }
        }
		
		public ColumnInfo CUSTOMER_CODE
        {
            get { return this[C_CUSTOMER_CODE]; }
        }
		
		public ColumnInfo ORDER_PERSON
        {
            get { return this[C_ORDER_PERSON]; }
        }
		
		public ColumnInfo ORDER_DATE
        {
            get { return this[C_ORDER_DATE]; }
        }
		
		public ColumnInfo TOTAL_AMOUNT
        {
            get { return this[C_TOTAL_AMOUNT]; }
        }
		
		public ColumnInfo CURRENCY
        {
            get { return this[C_CURRENCY]; }
        }
		
		public ColumnInfo DELIVERY_ADD
        {
            get { return this[C_DELIVERY_ADD]; }
        }
		
		public ColumnInfo TRANSPORT_TYPE
        {
            get { return this[C_TRANSPORT_TYPE]; }
        }
		
		public ColumnInfo PACKAGE_TYPE
        {
            get { return this[C_PACKAGE_TYPE]; }
        }
		
		public ColumnInfo PAYMENT_TYPE
        {
            get { return this[C_PAYMENT_TYPE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo IS_CONFIRM
        {
            get { return this[C_IS_CONFIRM]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

